﻿using NoORM.Core.DbAcceess;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NoORM.Core.DbMeta
{
    public class MetaProviderBuilder
    {
        public IMetaProvider Build(string connectionClassName)
        {
            IMetaProvider provider = null;
            switch (connectionClassName)
            {
                case ConnectionBuilder.SqlConnection:
                    provider = new SqlMetaProvider();
                    break;
                case ConnectionBuilder.MySqlConnection:
                    provider = null;
                    break;
                case ConnectionBuilder.OracleConnection:
                    provider = null;
                    break;
                case ConnectionBuilder.SqliteConnection:
                    provider = null;
                    break;
                default:
                    provider = new SqlMetaProvider();
                    break;
            }
            return provider;
        }
    }
}
